package com.shop.cloud.domain.system;

import java.time.OffsetDateTime;
import java.util.Date;
import java.util.List;
import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.shop.cloud.common.mapper.OffsetDateTimeToIso8601Serializer;
import com.shop.cloud.common.mybatis.BaseEntity;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 
 * sys_role_resource-sys_role_resource
 *
 */
@ToString
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class SysRoleResource extends BaseEntity{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 角色ID
	 */
	@ApiModelProperty(value = "角色ID")
	 private Long roleId;
	/**
	 * 职位ID
	 */
	@ApiModelProperty(value = "职位ID")
	 private Long positionId;
	/**
	 * 资源ID
	 */
	@ApiModelProperty(value = "资源ID")
	 private Long resourceId;
    
	//资源集
	private List<Long> resourceIds;
	
	//后台权限。1可查看和编辑本店和下属店面的内容，2仅可查看编辑本店的内容
    private Integer authority;

	public Integer getAuthority() {
		return authority;
	}

	public void setAuthority(Integer authority) {
		this.authority = authority;
	}

	public List<Long> getResourceIds() {
		return resourceIds;
	}

	public void setResourceIds(List<Long> resourceIds) {
		this.resourceIds = resourceIds;
	}

	public SysRoleResource(){
    
    }
    
    public Long getRoleId() {
        return this.roleId;
    }
    
    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
    public Long getPositionId() {
        return this.positionId;
    }
    
    public void setPositionId(Long positionId) {
        this.positionId = positionId;
    }
    public Long getResourceId() {
        return this.resourceId;
    }
    
    public void setResourceId(Long resourceId) {
        this.resourceId = resourceId;
    }

}